<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method="xml" indent="yes" encoding="utf-8"/>
  <xsl:template name="MenuListing">
    <xsl:apply-templates select="Channel" />
  </xsl:template>
  <xsl:template match="Channel">
    <li>
      <xsl:choose>
        <xsl:when test="ChannelTypeID=1">
          <a href="/home/{Index}/k.aspx">
            <xsl:value-of select="Name"/>
          </a>
        </xsl:when>
        <xsl:when test="ChannelTypeID=2">
          <a href="/home/Htmldocument/{Index}.aspx">
            <xsl:value-of select="Name"/>
          </a>
        </xsl:when>
        <xsl:when test="ChannelTypeID=3">
          <a onclick='openWindow("/home/Forms/FeedBack.aspx?t={Index}","",520,400);' href="javascript:void(0)">
            <xsl:value-of select="Name"/>
          </a>
        </xsl:when>
        <xsl:when test="ChannelTypeID>3">
          <a href="/home/{ChannelTypeID}/{Index}.aspx">
            <xsl:value-of select="Name"/>
          </a>
        </xsl:when>
      </xsl:choose>
      <xsl:if test="count(Channel) > 0">
        <ul class="m2">
          <xsl:call-template name="MenuListing" />
        </ul>
      </xsl:if>
    </li>
  </xsl:template>
</xsl:stylesheet>
